home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / amos / amosl0794.lzh / AMOSLIST / 000089_mentat@sefl.satelnet.org_Sat Jul 23 17:28:50 1994.msg < prev    next >
Internet Message Format  |  1994-08-01  |  2KB

  1. Received: from sefl.satelnet.org (satelnet.org) by nfs1.digex.net with SMTP id AA24138
  2.   (5.67b8/IDA-1.5 for <mcox@access.digex.net>); Sat, 23 Jul 1994 17:28:44 -0400
  3. Received: (from mentat@localhost) by sefl.satelnet.org (8.6.8.1/8.6.6) id RAA06066; Sat, 23 Jul 1994 17:28:27 -0400
  4. From: MenTaT - !Productions <mentat@sefl.satelnet.org>
  5. Message-Id: <199407232128.RAA06066@sefl.satelnet.org>
  6. Subject: Re: PIPEing
  7. To: mcox@access.digex.net (M D Cox)
  8. Date: Sat, 23 Jul 1994 17:28:25 -0400 (EDT)
  9. Cc: amos-list@access.digex.net
  10. In-Reply-To: <199407231950.AA02344@access1.digex.net> from "M D Cox" at Jul 23, 94 03:50:28 pm
  11. Content-Type: text
  12. Content-Length: 1633      
  13. Status: RO
  14.  
  15. > >I'm not sure how the shell handles pipes - the easiest way to test it 
  16. > >would be to try it!
  17.  
  18. > But where would the input be?  I mean, do I start a FOR NEXT loop and read
  19. > everything or is each line located at a specific address in memory, like
  20. > command line arguments?
  21.  
  22. There's always a possibility that it uses the PIPE: device...
  23.  
  24. > >AMOS program to redirect it, but it's not a very good solution...  For 
  25. > >this kind of thing you're better off using C.
  26.  
  27. > I thought you might say that.  :(  I can write it in C without any problems
  28. > just because it has special/standard facilities for STDIN and STDOUT.  I
  29. > just get tired of C at work.
  30.  
  31. Tired of C?  Blasphemy!  :)  For years I was scared of C - all those 
  32. braces gave me nightmares, but it's actually a nice language...  Now all 
  33. I need is SAS C!  What AMOS needs is stdio support, but really AMOS is 
  34. useless for shell programs - the compiler produces some BIG code!
  35.  
  36. > >Here's a nice awk program...  (Dunno if it works in GNU awk, but it works 
  37. > >in System V...)
  38.  
  39. > I will give it a try in GAWK.
  40. > >Any awk/grep questions, just ask! :)  (And here's something nice - search 
  41. > >for users with no password an a *NIX machine :
  42.  
  43. > AWK is quick and easy to do, fortunateluy I have experience with it.
  44.  
  45. > >grep '^[^:]*::' /etc/passwd
  46. > >Not that I condone this sort of activity... :)
  47.  
  48. > Oh, neither do I . . . ;)
  49.  
  50. This is kind of off the AMOS topic now, but anyone know how far the LINUX 
  51. port to the Amiga is from completion?  (And what kind of system will it 
  52. require?)
  53.  
  54. --
  55. $ make love
  56. Make:  Don't know how to make love.  Stop.
  57. $ rm God
  58. rm:  God non-existent.